package pattern.factory;

public class PepperPizza extends Pizza
{
	SouceFactory souceFactory;
	public PepperPizza(SouceFactory souceFactory)
	{
		this.souceFactory = souceFactory;
	}
	@Override
	void prepare()
	{
		pepper = souceFactory.creatPepper();
	}
}
